<template>
    <div class="center">        <router-link to="Hello">ss</router-link>

        <div class="easyui-layout" style="width:100%;height:100%">

            <div id="tb" style="height:auto;"> 
                <div style="width:100%; margin-bottom:3px;text-align: left;height:35px;" > 
                        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" v-on:click="add()" >添加</a>
                        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="openshanchu()" >删除</a>
                        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" plain="true" onclick="qiyong()" >启用</a>
                        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-lock" plain="true" onclick="jinyong()" >禁用</a>
                </div> 
             </div> 
            <table id="grid" class="easyui-datagrid" style="width:100%;height:100%" 
                url="/api/menu/menu_list" toolbar="#tb"
                rownumbers="true" pagination="true" singleSelect="false" loadMsg="正在努力为您加载数据">
                <thead>
                    <tr>
                        <th field="name" width="17%" align="center">name</th>
                        <th field="createDate" width="10%" align="center">createDate</th>
                    </tr>
                </thead>
            </table>



<div id="adddlg" class="easyui-dialog" style="width: 40%; height: 100px; padding: 10px 20px;" closed="true" buttons="#adddlg-buttons"  >
	<form id="formAddBanner" name="formAddBanner" method="post" >
	
			 <div style="width:100%;height:21px;margin-top:25px">
	        	<label style="display:inline-block;width:80px;color:#666;font-size:15px;">标题:</label>
	            <input style="width:62%;margin-top:-9px;vertical-align:middle;font-size:15px;color:#666666;border:1px solid #95B8E7" type="text"  id="title" name="title" value="" required="true"/></div>
    
	 </form>
</div>



<div id="adddlg-buttons" style="height: 30px;display:none;">
	<div style="width:140px;height:35px;float: right;">
		<a href="javascript:void(0)" class="easyui-linkbutton" onclick="saveAddBanner()" iconcls="icon-save">保存</a>
		<a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:$('#adddlg').dialog('close')"
		iconcls="icon-cancel">取消</a>	
	</div>
</div> 





        </div>
    </div>
</template>
<script>
export default {
    name: "center",
    data: function () {
        return {
            valueContent: 'center',
        }
    },
    methods : {
        imgFormatter : function(value,row,index){
            alert(value)
        },
        add : function () {
            $('#adddlg').panel({title: "添加Banner"});
            $('#adddlg').dialog('open');
	
        }
    }
}

</script>
<style>
</style>

